package com.qs.response;

/**
 * ClassName: ResponseEnum
 * Package: com.sixkey.response
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/9/27 - 17:07
 * @Version: v1.0
 */

import lombok.Getter;

/**
 * 响应码
 */
@Getter
public enum ResponseEnum {

    ERROR(401,"请求失败"),
    SUCCESS(200,"请求成功"),
    NEED_LOGIN(402,"需要登录后操作"),
    FAIL(403,"无权限，重新登录"),
    ADMIN_NORMAL(1001,"状态正常，无法删除！"),
    USER_NOT_EXITS(1002,"用户不存在！"),
    PHONE_ERROR(1003,"手机号错误！"),
    ILLEGAL_USER(1004,"非法用户！"),
    ID_CARD_ILLEGAL(1005,"身份证号不合法！"),
    PHONE_ILLEGAL(1006,"手机号不合法！"),
    ROLE_NOT_MATE(1007,"用户角色不匹配！"),
    NICK_NAME_EXITS(1008,"用户昵称已被占用！"),
    ID_CARD_USED(1009,"身份证号已被使用！"),
    HAVE_CATEGORY(1010,"删除失败，还有子分类未删除！"),
    USER_FORBID(1011,"用户已被禁用，请联系管理员！"),
    DO_NOT_OPEN_STORE(1012,"用户未注册，无法开店！"),
    GOODS_DELETE_ERROR(1013,"删除失败，有未下架的商品！"),
    PASSWORD_ERROR(1014,"密码错误！"),
    PHONE_EXITS(1015,"手机号已被注册！"),
    NUMBER_IS_FULL(1016,"一个用户最多注册5个店铺！"),
    HOME_NAME_EXITS(1018,"商户名称重名！"),
    CODE_TIMEOUT(1020,"验证码已过期，请重新获取！"),
    PASSWORD_OLD_ERROR(1022,"原始密码错误！"),
    ADDRESS_DEFAULT_EXITS(1024,"默认地址已存在，请修改！"),
    ADDRESS_IS_FULL(1025,"一个用户最多添加5个收获地址！"),
    CODE_ERROR(1026,"验证码错误！"),
    USERNAME_ERROR(1028,"真实姓名错误！"),
    TOKEN_EXPIRE(1030,"登录过期，请重新登录！"),
    NUMBER_LOW(1031,"库存不足！"),
    ORDER_ID_EXCEPTION(1032,"订单异常！"),
    DO_NOT_REPLACE_SUBMIT(1034,"请勿重复提交订单！"),
    GOODS_STOCK_FAIL(1035,"商品库存锁定失败！"),
    ORDER_ID_EXPIRE(1036,"订单已超时，请重新下单！"),
    COLLECT_SUCCESS(1038,"您已收藏过此商品！"),
    COLLECT_STORE_SUCCESS(1040,"您已收藏过此店铺！"),
    PASSWORD_NULL(1024,"请先设置登录密码哦！"),
    BRAND_EXITS(1025,"品牌已存在，请勿重复添加！"),
    GOODS_NAME_EXITS(1026,"商品名称不能重复哦！"),
    ORDER_ID_NULL(1028,"系统错误！"),
    NONSUPPORT(1030,"不支持的支付方式！"),
    AS_NULL(1031,"as为null！");





    /**
     * 响应返回码
     */
    private final Integer code;
    /**
     * 响应返回消息
     */
    private final String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
